package icu.luoxi.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 系统定时任务表
 * </p>
 *
 * @author 洛希极限
 * @since 2025-05-06
 */
@Getter
@Setter
@TableName("sys_scheduled_task")
@ApiModel(value = "ScheduledTask对象", description = "系统定时任务表")
public class ScheduledTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId("id")
    private String id;

    @ApiModelProperty("任务名称")
    @TableField("task_name")
    private String taskName;

    @ApiModelProperty("任务唯一标识")
    @TableField("task_key")
    private String taskKey;

    @ApiModelProperty("任务全类名")
    @TableField("task_class")
    private String taskClass;

    @ApiModelProperty("cron表达式")
    @TableField("cron_expression")
    private String cronExpression;

    @ApiModelProperty("状态：0-停用，1-启用")
    @TableField("task_status")
    private Integer taskStatus;

    @ApiModelProperty("任务描述")
    @TableField("task_desc")
    private String taskDesc;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
